public class Cuboid {
    private double length;
    private double width;
    private double height;

    public Cuboid() {
    }

    public Cuboid(double length, double width, double height) {
        this.length = length;
        this.width = width;
        this.height = height;
    }

    public void setLength(double length) {
        if (length > 0) {
            this.length = length;
        } else {
            System.out.println("长度必须大于0");
        }
    }

    public void setWidth(double width) {
        if (width > 0) {
            this.width = width;
        } else {
            System.out.println("宽度必须大于0");
        }
    }

    public void setHeight(double height) {
        if (height > 0) {
            this.height = height;
        } else {
            System.out.println("高度必须大于0");
        }
    }

    public double getLength() {
        return length;
    }

    public double getWidth() {
        return width;
    }

    public double getHeight() {
        return height;
    }

    public double getArea() {
        return 2 * (length * width + length * height + width * height);//表面积
    }

    public double getCubage() {
        return length * width * height;//体积
    }

    public boolean isCube() {
        return length == width && width == height;//判断正方体
    }

    public void printCuboid() {
        System.out.println("长方体的长为：" + length);
        System.out.println("长方体的宽为：" + width);
        System.out.println("长方体的高为：" + height);
    }

    public void drawing() {
        System.out.println("正在绘制长方体...");
    }
}